package com.czy.owner.entity;

import java.util.List;

/**
 * Created by asus on 2016/12/14.
 */

public class CategoryModel {


    private String flag;
    private int errorCode;
    private long serverTime;
    private String exp;
    /**
     * province_id : 21
     * province_short_name : 皖
     * citys : [{"engine_num":0,"city_name":"合肥","body_num":6,"city_code":340100,"city_id":250,"car_head":"皖A"},{"engine_num":0,"city_name":"六安","body_num":6,"city_code":341500,"city_id":262,"car_head":"皖N"},{"engine_num":0,"city_name":"马鞍山","body_num":6,"city_code":340500,"city_id":256,"car_head":"皖E"},{"engine_num":0,"city_name":"黄山","body_num":6,"city_code":341000,"city_id":253,"car_head":"皖J"},{"engine_num":0,"city_name":"安庆","body_num":6,"city_code":340800,"city_id":255,"car_head":"皖H"},{"engine_num":0,"city_name":"亳州","body_num":6,"city_code":341600,"city_id":257,"car_head":"皖S"},{"engine_num":0,"city_name":"芜湖","body_num":6,"city_code":340200,"city_id":251,"car_head":"皖B"},{"engine_num":0,"city_name":"蚌埠","body_num":6,"city_code":340300,"city_id":254,"car_head":"皖C"},{"engine_num":0,"city_name":"淮南","body_num":6,"city_code":340400,"city_id":260,"car_head":"皖D"},{"engine_num":0,"city_name":"淮北","body_num":6,"city_code":340600,"city_id":261,"car_head":"皖F"},{"engine_num":0,"city_name":"铜陵","body_num":6,"city_code":340700,"city_id":259,"car_head":"皖G"},{"engine_num":0,"city_name":"滁州","body_num":6,"city_code":341100,"city_id":258,"car_head":"皖M"},{"engine_num":0,"city_name":"阜阳","body_num":6,"city_code":341200,"city_id":252,"car_head":"皖K"},{"engine_num":0,"city_name":"宿州","body_num":6,"city_code":341300,"city_id":264,"car_head":"皖L"},{"engine_num":0,"city_name":"巢湖","body_num":6,"city_code":340181,"city_id":263,"car_head":"皖Q"},{"engine_num":0,"city_name":"池州","body_num":6,"city_code":341700,"city_id":266,"car_head":"皖R"},{"engine_num":0,"city_name":"宣城","body_num":6,"city_code":341800,"city_id":265,"car_head":"皖P"}]
     * province_name : 安徽
     */

    private List<DataBean> data;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public long getServerTime() {
        return serverTime;
    }

    public void setServerTime(long serverTime) {
        this.serverTime = serverTime;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp;
    }

    public List<DataBean> getData() {
        return data;
    }
    public void setData(List<DataBean> data) {
        this.data = data;
    }
    public static class DataBean {
        /**
         * createUserId : 1031
         * superCategoryId : 0
         * createTime : 1481693318001
         * subs : [{"createUserId":1031,"superCategoryId":246,"createTime":1481693334564,"subs":[{"createUserId":1031,"superCategoryId":247,"createTime":1481693358938,"subs":[],"logo":"http://121.40.100.179:8080/res/download/7644","sort":1,"storeId":286,"categoryName":"cccccc","categoryId":248,"status":"enable"},{"createUserId":1031,"superCategoryId":247,"createTime":1481693398435,"subs":[],"logo":"http://121.40.100.179:8080/res/download/7646","sort":1,"storeId":286,"categoryName":"ddddddddd","categoryId":249,"status":"enable"}],"logo":"http://121.40.100.179:8080/res/download/7643","sort":1,"storeId":286,"categoryName":"bbbbb","categoryId":247,"status":"enable"}]
         * logo : http://121.40.100.179:8080/res/download/7642
         * sort : 1
         * storeId : 286
         * categoryName : aaaaaaaa
         * categoryId : 246
         * status : enable
         */

        private int createUserId;
        private int superCategoryId;
        private long createTime;
        private String logo;
        private int sort;
        private int storeId;
        private String categoryName;
        private int categoryId;
        private String status;
        /**
         * createUserId : 1031
         * superCategoryId : 246
         * createTime : 1481693334564
         * subs : [{"createUserId":1031,"superCategoryId":247,"createTime":1481693358938,"subs":[],"logo":"http://121.40.100.179:8080/res/download/7644","sort":1,"storeId":286,"categoryName":"cccccc","categoryId":248,"status":"enable"},{"createUserId":1031,"superCategoryId":247,"createTime":1481693398435,"subs":[],"logo":"http://121.40.100.179:8080/res/download/7646","sort":1,"storeId":286,"categoryName":"ddddddddd","categoryId":249,"status":"enable"}]
         * logo : http://121.40.100.179:8080/res/download/7643
         * sort : 1
         * storeId : 286
         * categoryName : bbbbb
         * categoryId : 247
         * status : enable
         */

        private List<SubsBean> subs;

        public int getCreateUserId() {
            return createUserId;
        }

        public void setCreateUserId(int createUserId) {
            this.createUserId = createUserId;
        }

        public int getSuperCategoryId() {
            return superCategoryId;
        }

        public void setSuperCategoryId(int superCategoryId) {
            this.superCategoryId = superCategoryId;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getStoreId() {
            return storeId;
        }

        public void setStoreId(int storeId) {
            this.storeId = storeId;
        }

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public int getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(int categoryId) {
            this.categoryId = categoryId;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public List<SubsBean> getSubs() {
            return subs;
        }

        public void setSubs(List<SubsBean> subs) {
            this.subs = subs;
        }

        public static class SubsBean {
            private int createUserId;
            private int superCategoryId;
            private long createTime;
            private String logo;
            private int sort;
            private int storeId;
            private String categoryName;
            private int categoryId;
            private String status;
            private boolean isGroup;

            public boolean isGroup() {
                return isGroup;
            }

            public void setGroup(boolean group) {
                isGroup = group;
            }

            /**
             * createUserId : 1031
             * superCategoryId : 247
             * createTime : 1481693358938
             * subs : []
             * logo : http://121.40.100.179:8080/res/download/7644
             * sort : 1
             * storeId : 286
             * categoryName : cccccc
             * categoryId : 248
             * status : enable
             */

            private List<SubsBean> subs;

            public int getCreateUserId() {
                return createUserId;
            }

            public void setCreateUserId(int createUserId) {
                this.createUserId = createUserId;
            }

            public int getSuperCategoryId() {
                return superCategoryId;
            }

            public void setSuperCategoryId(int superCategoryId) {
                this.superCategoryId = superCategoryId;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public String getLogo() {
                return logo;
            }

            public void setLogo(String logo) {
                this.logo = logo;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getStoreId() {
                return storeId;
            }

            public void setStoreId(int storeId) {
                this.storeId = storeId;
            }

            public String getCategoryName() {
                return categoryName;
            }

            public void setCategoryName(String categoryName) {
                this.categoryName = categoryName;
            }

            public int getCategoryId() {
                return categoryId;
            }

            public void setCategoryId(int categoryId) {
                this.categoryId = categoryId;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public List<SubsBean> getSubs() {
                return subs;
            }

            public void setSubs(List<SubsBean> subs) {
                this.subs = subs;
            }


        }
    }
}
